<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<%@include file="../../common/headfiles-jquery.jsp" %>
<style type="text/css">
body{
   margin-left:auto;
   margin-right:auto;
   padding-top:100px;
}
</style>
</head>
<body>
	<fieldset>
		<legend>
		<h4>
		点击对应按钮,选择下一步要执行的活动
		</h4>
		</legend>
			<c:forEach items="${actions}" var="act">
			       <button 
				           action="${act.actionId}" 
						   entity="${act.workflowId}"
						   step="${act.stepId}"
						   class="sexybutton sexysimple sexyblue"
						   >
						    <span class="ok">
						    ${act.actionName}
						    </span>
						  </button>      
				
			</c:forEach>		
	</fieldset>
	<form id="actionform" action="../../admin/form/show/generate-html" target="_self">
      <input name="showOnly" type="hidden" value="false"/>
	  <input name="workflowId"  type="hidden" id="workflowId" />
	  <input name="actionId"  type="hidden" id="actionId" />
	  <input name="stepId"  type="hidden" id="stepId" />
	</form>
<script type="text/javascript">
$(function(){		
	var aform = $("#actionform");
	$("button").bind("click",function(){		
		$("#workflowId").val(this.entity);
		$("#actionId").val(this.action);
		$("#stepId").val(this.step);	
		aform.get(0).submit();
	});
	
});
</script>	
</body>
</html>